﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Openapi.Weibo.Model;

namespace Sample.Mvc3.Controllers
{
    [Authorize]
    public class WeiboController : ControllerBase
    {
        public virtual AccessToken CurrentToken
        {
            get
            {
                if (Session["accesstoken"] != null)
                {
                    return Session["accesstoken"] as AccessToken;
                }
                return null;
            }
        }
        //
        // GET: /Weibo/

        public ActionResult Index()
        {
            //ViewBag.Message =String.Format("Hello,{0}",CurrentToken.uid);
            return View();
        }

        public JsonResult GetFriendStatuses(int page,int count)
        {
            return Json(null);
        }

    }
}
